package com.zy.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zy.mapper.BmMapper;
import com.zy.pojo.Bm;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("bmService")
public class BmServiceImpl extends ServiceImpl<BmMapper,Bm> implements BmService{
    @Resource
    private BmMapper bmMapper;
   @Override
    public void add(Bm bm) {
       bmMapper.insert(bm) ;
    }

    @Override
    public void del(Integer id) {
        bmMapper.deleteById(id);
    }

    @Override
    public void update(Bm bm) {
    bmMapper.updateById(bm);
    }
}
